package scau.hotel.hotel_service.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import scau.hotel.hotel_service.validator.IsChinese;
import scau.hotel.hotel_service.validator.IsPositiveInteger;
import scau.hotel.hotel_service.validator.IsRoomTypeNo;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RoomTypeVo {
    /**
     * 房型id
     */
    private Integer roomTypeId;
    /**
     * 房型名称
     */
    @NotNull(message = "房型名称不能为空")
    @IsChinese(message = "房型名称请输入汉字")
    private String roomTypeName;
    /**
     * 房型编号
     */
    @NotNull(message = "房型编号不能为空")
    @IsRoomTypeNo(message = "房型编号格式为24***")
    private String roomTypeNo;
    /**
     * 床位数
     */
    @NotNull(message = "床位数不能为空")
    @IsPositiveInteger(message = "床位数请输入正整数")
    private String roomTypeBed;
    /**
     * 房型基础价格
     */
    private BigDecimal roomTypePrice;

}
